const staticRouter = [
    {
        path: "/",
        name: "首页",
        component: () => import("../views/index"),
        meta: {
            title: '首页'
        }
    }, {
        path: '/member/login',
        name: '登录',
        component: () => import("../views/member/login"),
        meta: {
            title: '登录',
            _blank: true
        }
    }, {
        path: "/member/register",
        name: '注册',
        component: () => import("../views/member/register"),
        meta: {
            title: '注册'
        }
    }, {
        path: '*',
        name: "/404",
        component: () => import("../components/error"),
        meta: { title: '404错误' }
    }, {
        path: '/member/forget',
        name: '找回密码',
        meta: { title: "找回密码" },
        component: () => import("../views/member/forgetpassword"),
    }, {
        path: '/aboutme',
        name: "關於我們",
        component: () => import("../views/common/aboutme"),
        meta: { title: '关于我们' }
    }, {
        path: '/contact',
        name: '联系我们',
        component: () => import("../views/common/contact"),
        meta: { title: '联系我们' }
    }, {
        path: '/member/membersetting',
        name: '账号设置',
        component: () => import("../views/member/membersetting"),
        meta: { title: '账号设置' },
        children: [
            // 子路由
            {
                path: '/member/membersetting/securitysetting',
                name: '安全设置',
                component: () => import("../views/member/securitysetting"),
                meta: { title: '账号安全设置' }
            }, {
                path: '/member/membersetting/takeaddress',
                name: '收货地址',
                component: () => import("../views/member/takeaddress"),
                meta: { title: '收货地址' }
            }, {
                path: '/member/membersetting/memberinfo',
                name: '会员交易信息',
                component: () => import("../views/member/memberinfo"),
                meta: { title: '会员交易信息' }
            }, {
                path: '/member/membersetting/messaging',
                name: '站内信',
                component: () => import("../views/member/messaging"),
                meta: { title: '站内信' }
            }, {
                path: '/member/membersetting/memberdata',
                name: '会员个人资料',
                component: () => import("../views/member/memberdata"),
                meta: { title: '个人资料' }
            }, {
                path: '/member/membersetting/addproduct',
                name: '添加二手商品',
                component: () => import("../views/product/addProduct"),
                meta: '添加商品'
            }, {
                path: '/member/membersetting/updateproduct',
                name: '修改二手商品信息',
                component: () => import("../views/product/updateProduct"),
                meta: { title: '商品信息修改' }
            }, {
                path: '/member/membersetting/manageproduct',
                name: '用户管理商品',
                component: () => import("../views/product/manageProduct"),
                meta: { title: '商品管理' }
            }, {
                path: '/member/membersetting/exchange',
                name: '交流',
                component: () => import("../views/member/message"),
                meta: { title: '交流' }
            },
        ]

    }, {
        path: '/member/accountsetting',
        name: '账户设置',
        component: () => import("../views/member/accountsetting"),
        meta: { title: '账户设置' },
        children: [
            // 子路由
            {
                path: '/member/accountsetting/cart',
                name: '我的购物车',
                component: () => import("../views/cart/cart"),
                meta: { title: '我的购物车' }
            }, {
                path: '/member/accountsetting/orderlist',
                name: '买到的宝贝',
                component: () => import("../views/order/orderList"),
                meta: { title: '已买到的宝贝' }
            }, {
                path: '/member/accountsetting/collect',
                name: '收藏夹',
                component: ()=>import("../views/product/collectTemplate"),
                meta: {title: "收藏夹"}
            }, {
                path: '/member/accountsetting/interest',
                name: '我的关注',
                component: ()=>import("../views/member/interest"),
                meta: {title: '我的关注'}
            }

        ]
    }, {
        path: '/member/updateEmail',
        name: '修改或者更新邮箱',
        component: () => import("../views/member/updateEmail"),
        meta: { title: '更新邮箱' }
    }, {
        path: '/member/updatePhone',
        name: '修改或者更新号码',
        component: () => import("../views/member/updatePhone"),
        meta: { title: '更新号码' }
    }, {
        path: '/product/productdetail',
        name: '商品的详情页',
        component: () => import("../views/product/productdetail"),
    }, {
        path: '/order/buyproduct',
        name: '购买商品页面，确认订单',
        component: () =>import("../views/order/buyProduct"),
        meta: {title: '确认订单'}
    }, {
        path: "/order/orderdetail",
        name: '订单详情页',
        component: ()=>import("../views/order/orderDetail"),
        meta: {title: '订单详情'}
    }, {
        path: "/member/collect",
        name: '收藏夹大',
        component: ()=>import("../views/product/collect"),
        meta: {title: '收藏夹'}
    }, {
        path: "/member/search",
        name: '搜索页',
        component: ()=>import("../views/search")
    }, {
        path: "/member/othermember",
        name: '商品发布者',
        component: ()=>import("../views/member/otherMember"),
    },
    // {
    //     path: "/member/exchange",
    //     name: 'asdfasf',
    //     component: ()=>import("../views/member/exchange"),
    // },{
    //     path: "/test",
    //     name: 'asdsdfsdffasf',
    //     component: ()=>import("../views/test"),
    // },

]   

export default staticRouter
